package com.kdd.campus.sh.service;

import com.kdd.campus.sh.dto.LoginUserDto;
import com.kdd.campus.sh.po.Admin_user;
import com.kdd.campus.sh.po.ShFootprint;
import com.kdd.campus.sh.po.User;

import java.util.List;

/****
 * @Author:shenkunlin
 * @Description:User业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface UserService {

    /**
     * 根据ID查询User
     * @param id
     * @return
     */
     User findById(Long id);

     Admin_user findAdminById(Long id);


    /**
     * @param openid   含有微信openid和session_key
     * @param userDto  微信的用户信息
     * @return
     */
    User login(String openid, LoginUserDto userDto);

    /**
     * 更新User
     * @param user
     */
    void update(User user);

    /**
     * 删除User
     * @param userId
     */
    void delete(Long userId);

    /**
     * 插入User
     * @param user
     */
    void save(User user);

    List<ShFootprint> getFootprint(Long userId);
}
